<% if current_user %>
<p>You are already logged in.  If you would like to switch users, you must first <%= link_to "log out", log_out_path %>.</p>
<% else %>

<h1>Log In</h1>
<%= form_tag sessions_path do %>
  <p>
    <%= label_tag :email %><br />
    <%= text_field_tag :email, params[:email], :autofocus => true %>
  </p>
  <p>
    <%= label_tag :password %><br />
    <%= password_field_tag :password %>
  </p>
  <p class="button"><%= submit_tag "Log in" %></p>
<% end %>
<% end %>
